package com.clstu.ploy_;

import javafx.scene.chart.BubbleChart;

public class PloyDetail {
    public static void main(String[] args) {
        Base sub = new Sub();//向上转型
        System.out.println(sub.count);//10 这里看编译类型
    }
}


class Base{
    int count=10;
}
class Sub extends Base{
    int count=10;
}